import React from 'react';
import {HashRouter,Switch,Route} from 'react-router-dom'
import List from './components/List'
import Details from './view/Details'

class Router extends React.Component {
    render(){
        return (
            <div>
                <HashRouter>
                    <Switch>
                        <Route path="/details" component={Details}/>
                        <Route path="/" component={List}/>
                    </Switch>
                </HashRouter>
            </div>
        )
    }
}

export default Router